#ifndef LS_PUBLIC_DEF_H
#define LS_PUBLIC_DEF_H

#include <game_share/game_def.h>
#include <nel/net/buf_net_base.h>		//	for TSockId

namespace LS
{
	typedef uint8 LOGIN_STATE;

	enum ELOGIN_STATE
	{
		VERIFY_CHECKING,
		VERIFY_ALREADY,
		AUTHORIZED,
		OFF_LINE,
		INVALID_STATE,
	};

	struct SLoginRequest
	{
		NLNET::TSockId sockId;
		DEF::UID       uid;
		volatile LOGIN_STATE state;
		std::string user;
		std::string password;


		SLoginRequest():uid(0),state(INVALID_STATE)
		{}
	};
}


#endif // LS_PUBLIC_DEF_H
